﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using jabber.protocol;

namespace RoketPack.IM
{
    class RoketPackXmlElement : Element
    {
        /// <summary>
        /// Creates a new <rp> element with the specified XML document.
        /// </summary>
        /// <param name="doc">The XML document.</param>
        public RoketPackXmlElement(System.Xml.XmlDocument doc)
            : base("rp", doc)
        {
        }

        /// <summary>
        /// The message data in the <rp> element.
        /// </summary>
        public string Message
        {
            get { return this.InnerText; }
            set { this.InnerText = value; }
        }

        /// <summary>
        /// The type of <rp> message.
        /// </summary>
        public string Type
        {
            get { return this.GetAttr("type"); }
            set { this.SetAttr("type", value); }
        }
    }
}
